package proxy;

import com.itheima.service.UserService;
import com.itheima.service.impl.UserServiceImpl;
import decorator.UserServiceImplDecorator2;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;

/**
 * @program: Spring_day03_04_综合案例
 * @description:
 * @author: zhanghz001
 * @create: 2020-11-29 17:46
 **/
public class App {
    public static void main(String[] args) {
        UserServiceImpl service = new UserServiceImpl();
        UserService serviceJDKProxy = UserServiceJDKProxy.createUserServiceJDKProxy(service);

        serviceJDKProxy.save();
    }
}
